package com.eu.ebpm.engine.pvm;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eu.ebpm.engine.cmd.pvm.EndEventIntoCommand;
import com.eu.ebpm.engine.entity.deploy.Mission;
import com.eu.ebpm.engine.entity.runtime.TaskEntity;

/**
 * 
 * 类名称: EndEventMissionService
 * 类描述: 结束事件处理服务,因为EndEvent只有作为结束事件的接受者；所以没有finishMission这个方法
 * @author 王晓华
 * @since 2013-12-23 上午11:10:25
 * @version v1.0
 */
@Service
public class EndEventService extends PvmEngine implements EngineService {
	
	@Autowired
	private EndEventIntoCommand endEventIntoCommand;
	
	public void into(Mission mission, TaskEntity task, Map<String, Object> variables) {
		
		endEventIntoCommand.execute(mission, task, variables);
		
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	

	
	
}
